package com.raycloud.java.dada.base;

import com.raycloud.java.dada.util.BasicURL;

/**
 * Created by hechuan on 2017/6/23.
 * 基本配置类
 */
public class Config {
    private String baserUrl;
    private String sourceId;
    private String appKey;
    private String appSecret;

    public Config(boolean isSandBox, String sourceId, String appKey, String appSecret) {
        if (isSandBox) {
            this.baserUrl = BasicURL.SANDBOX_API;
            this.sourceId = sourceId;
        } else {
            this.baserUrl = BasicURL.PRODUCTION_API;
            this.sourceId = sourceId;
        }
        this.appKey = appKey;
        this.appSecret = appSecret;
    }

    public String getBaserUrl() {
        return baserUrl;
    }

    public String getSourceId() {
        return sourceId;
    }

    public String getAppKey() {
        return appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }
}
